fix(vue-query-devtools): only register cleanup after mount#10439
fix(vue-query-devtools): only register cleanup after mount#10439semimikoh wants to merge 2 commits intoTanStack:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughFixes Vue SSR devtools cleanup by relocating unmount registration from top-level component scope to inside the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 3148494
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Fix SSR cleanup handling in
@tanstack/vue-query-devtoolsby only registeringdevtools.unmount()after
devtools.mount()has actually run.Previously, the Vue devtools wrapper registered cleanup in
onScopeDispose()during setup, whilemount()only happened inonMounted(). In Vue SSR,onMounted()does not run on the server, butThis change ensures cleanup is only registered after mount in:
packages/vue-query-devtools/src/devtools.vuepackages/vue-query-devtools/src/devtoolsPanel.vueA changeset was also added for
@tanstack/vue-query-devtools.Closes #10374
main/CONTRIBUTING.md).
pnpm run test:pr.🚀 Release Impact
changesets/changesets/blob/main/docs/adding-a-changeset.md).
Summary by CodeRabbit
Bug Fixes